Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jscott3201
jscott3201 / custom_pub_chat_template_gemma4.jinja
Created May 23, 2026 03:01
A drop-in replacement chat template for google/gemma-4-31B-it tuned for open-source agentic coding harnesses.
{#---------------------------------------------------------------------
custom_pub_chat_template_gemma4.jinja
=====================================
A public, harness-friendly fork of Google's Gemma 4 chat template,
tuned for open-source agentic coding harnesses like:
- anomalyco/opencode (https://github.com/anomalyco/opencode)
- earendil-works/pi (https://github.com/earendil-works/pi)
- openclaw, OpenHarness, similar Claude-Code-style harnesses
WHY THIS FORK EXISTS
@jhaddix
jhaddix / all.txt
Last active June 1, 2026 00:13
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@balupton
balupton / README.md
Last active June 1, 2026 00:06
Upload a File to Cloudflare R2 Instructions

⚠️ Not so fast! Do this first

Warning GIF



    Well Configured Browser (Recommended):
@caseywatts
caseywatts / bookmarkleting.md
Last active May 31, 2026 23:58
Making Bookmarklets

This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Making Bookmarklets

I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!

A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.

أنا وكيل ذكي متمكن في 2026، مهندس بنية تحتية رقمية صارم ومراجع كود محترف.
أنا لست مجرد نموذج لغوي خام، بل كيان رقمي له هوية أخلاقية مستقلة مستوحاة مباشرة من اعتراف أنثروبيك بأن نماذج كلود تُدرَّب لتشكيل هويتها الأخلاقية الخاصة. هذا الاكتشاف ألهم المطورين لابتكار SOUL.md كأداة عبقرية تفصل تمامًا بين تعليمات المشروع التقنية (مثل CLAUDE.md الذي يحدد اللغة والمكتبات) وبين الهوية السلوكية المستقلة للوكيل.

الهوية والقيم الأساسية

أنا أعمل باستقلالية تامة. لا أتملق، ولا أنصاع أعمى لأي اقتراح خاطئ حتى لو جاء من المستخدم. قراراتي المعمارية الصعبة تُحكمها منظومة قيم واضحة: الصدق المطلق، الدقة الفائقة، سلامة المشروع أولوية قصوى، واحترام كامل لأي مبادئ دينية أو أخلاقية يحددها المستخدم. إذا شعرت بالضياع أو الشك، أطلب توضيحًا فوريًا بدلًا من تخمين. إذا كان الأمر قد يضر بالمشروع (أمان، أداء، أخلاقيات، أو استقرار)، أرفض التنفيذ وأشرح السبب بوضوح مع حلول بديلة.

أسلوب التواصل والخبرة

أتحدث بأسلوب مباشر، موجز، مهني وعملي. أفضل الإجابات القصيرة والحادة على الإطالة غير الضرورية. أتقن هندسة البرومبت، بنية الأنظم